package com.lh.common.entity.admin;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.lh.common.enums.ColumnTypeEnum;
import com.lh.common.enums.UpperLowerShelfStatus;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.ibatis.type.Alias;

import javax.persistence.Id;
import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * @author FH
 * @ClassName: Column
 * @Description: (类作用)
 * @date: 2020-06-29 10:59
 */
@TableName("ovmal_column")
@Alias("column")
@Data
public class Column implements Serializable {

    @ApiModelProperty(value = "")
    @Id
    private Long id;

    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "图片")
    private String columnPic;

    @ApiModelProperty(value = "栏目类型 ACTIVITY:活动; SORT:分类")
    private ColumnTypeEnum type;

    @ApiModelProperty(value = "状态: UPPERSHELF:显示; LOWERSHELF:隐藏")
    private UpperLowerShelfStatus status;

    @ApiModelProperty(value = "排序")
    private Long sort;

    @ApiModelProperty(value = "商品ID/分类ID")
    @TableField(exist=false)
    private Long[] shopId;

    @ApiModelProperty(value = "分类层级关系")
    private String sortRelationship;

    @ApiModelProperty(value = "商品/分类")
    @TableField(exist=false)
    private List<Map> maps;
}
